package pers.smalltown.authorize.consts;

public class Consts {
    private static String wxAppId="wxa6558ffe7a73f1b5";
    private static String wxSecret="4f84a7f3b123da21dba66f3e136d2640";
    private static String wxAccessUri="https://api.weixin.qq.com/sns/oauth2/access_token?appid=wxa6558ffe7a73f1b5&secret=4f84a7f3b123da21dba66f3e136d2640&code=CODE&grant_type=authorization_code";
    private static String wxUserInfoUri="https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    public static String getWxAppId() {
        return wxAppId;
    }

    public static String getWxSecret() {
        return wxSecret;
    }

    public static String getWxAccessUri(String authCode) {
        return wxAccessUri.replace("CODE", authCode);
    }
    
    public static String getWxUserInfoUri(String accessToken, String openId) {
    	return wxUserInfoUri.replace("ACCESS_TOKEN", accessToken).replace("OPENID", openId);
    }
}
